<template>
  <div>
    <nav-bar class="home_nav">
      <!-- 具名插槽使用 -->
      <template v-slot:center>
        <div>购物街</div>
      </template>
    </nav-bar>首页
  </div>
</template>
<script>
import NavBar from "@/components/common/navbar/NavBar";

import { getHomeMultiData } from "@/network/home";
export default {
  name: "Home",
  data() {
    return {
      multiData: null
    };
  },
  components: {
    NavBar
  },
  created() {
    getHomeMultiData().then(res => {
      this.multiData = res;
      console.log("home==res===", res);
    });
  }
};
</script>
<style scoped>
.home_nav {
  background-color: rgb(255, 142, 151);
  color: #fff;
}
</style>